<?php
class AllViewModel extends ViewModel {
	public $viewFields = array (
	'Project' => array ('pid','pname', 'state','pno' ,'regdate'), 
	'Projectgroup' => array ('gid','source','partnername','managername','membername','prefund' => 'fund','_on' => 'Projectgroup.project_pid=project.pid' ), 
	'Company'=>array('cid','name'=>'cname','address','classify','contact_name','contact_position','contact_email','contact_phone','intro','_on'=>'Company.project_pid=project.pid'),	
	'additionservice'=>array('additionservice.type'=>'additonservicetype','date'=>'additionservicedate','content'=>'additionservicecontent','_on'=>'additionservice.project_pid=project.pid'),
	'company_finance'=>array('date'=>'company_financedate','income'=>'incomecompany_finance','net_income'=>'net_incomecompany_finance','EBITDA', 'EBIT','_on'=>'company_finance.project_pid=project.pid'),
	'infofinance'=>array('scale','thisyear','type'=>'infofinancetype','assessment','isleader','post','other','_on' => 'infofinance.project_pid=project.pid'),
	'safeguardclause'=>array('type'=>'safeguardclausetype','condition'=>'safeguardclausecondition','content'=>'safeguardclausecontent','_on' => 'safeguardclause.project_pid=project.pid'),
	);
}
?>